import http from '@/utils/http'

/**
 * 获取首页banner图
 * @param {*} distributionSite
 */
export const getBannerListAPI = (distributionSite = 1) => {
  return http({
    url: '/home/banner',
    data: {
      distributionSite: 1
    }
  })
}

/**
 * 获取前台列表头部数据
 * @returns
 */
export const getCategoryHeadMutliListAPI = () => {
  return http({
    url: '/home/category/mutli'
  })
}

/**
 * 获取热门推荐列表数据
 * @returns
 */
export const getHotMutliAPI = () => {
  return http({
    url: '/home/hot/mutli'
  })
}

/**
 * 获取新鲜好物数据列表
 * @returns
 */
export const getHomeNewAPI = () => {
  return http({
    url: '/home/new'
  })
}

/**
 * 猜你喜欢
 * @returns
 */
export const GoodsGuessLikeAPI = total => {
  return http({
    url: '/home/goods/guessLike',
    data: total
  })
}

/**
 * 获取推荐商品分类列表数据
 * @param {*} url
 * @param {*} data
 * @returns
 */
export const getRecommendAPI = (url, data) => {
  return http({
    url,
    data
  })
}
